package cn.edu.xmut.chen.zhlg.zhlg.message.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@ApiModel(description = "私聊消息实体")
public class PrivateMessage {
    @ApiModelProperty(value = "消息ID", example = "msg_123")
    private String id;
    
    @ApiModelProperty(value = "会话ID", example = "chat_123")
    private String chatId;
    
    @ApiModelProperty(value = "发送者ID", example = "user_1")
    private String senderId;
    
    @ApiModelProperty(value = "接收者ID", example = "user_2")
    private String receiverId;
    
    @ApiModelProperty(value = "内容类型(TEXT/IMAGE)", example = "1")
    private Integer contentType;
    
    @ApiModelProperty(value = "消息内容", example = "你好！")
    private String content;
    
    @ApiModelProperty(value = "创建时间", example = "2023-01-01T00:00:00")
    private Date createTime;
    
    @ApiModelProperty(value = "是否已读", example = "false")
    private Boolean isRead;

    @ApiModelProperty(value = "是否已删除(发送者/接收者)", example = "false")
    private Boolean deletedBySender;

    @ApiModelProperty(value = "是否已删除(接收者/发送者)", example = "false")
    private Boolean deletedByReceiver;
}